﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.Domain.Model.User
{
    /// <summary>
    /// 部门信息表
    /// </summary>
    [Table("DepartmentInfo")]
    public class DepartmentInfo:Audit
    {
        /// <summary>
        /// 主键编号
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 部门父级编号
        /// </summary>
        [Display(Name = "部门父级编号")]
        [Required]
        public int Pid { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [Display(Name= "部门名称")]
        [Required]
        public string Name { get; set; }
    }
}
